package com.qf.device.controller;

import com.qf.device.service.DeviceService;
import com.qf.dto.DriverMqttDto;
import com.qf.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 作者：熊剑
 * 时间：2023/11/1
 * 描述：
 */
/*设备认证*/
@RestController
@CrossOrigin
@RequestMapping("/device")
public class DeviceAuthController {

    @Autowired
    private DeviceService deviceService;

    @PostMapping("auth")
    public R<DriverMqttDto> auth(@RequestBody DriverMqttDto driverMqttDto){
        return deviceService.auth(driverMqttDto);
    }
}
